<!DOCTYPE html>
<head>
<style>
hr {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    border: solid 1px lime;
}

</style>
</head>
<body>
<p>For each of pairs, the first one and the second one should be identical.
<!-- This test should be converted to a reftest in the future! -->

<table border=0 style="float:left">
<tr><td><section><hr><h1>MMM</h1><hr></section>
    <td><hr><h2>MMM</h2><hr>
<tr><td><article><section><hr><h1>MMM</h1><hr></section></article>
    <td><hr><h3>MMM</h3><hr>
<tr><td><nav><article><section><hr><h1>MMM</h1><hr></section></article></nav>
    <td><hr><h4>MMM</h4><hr>
<tr><td><nav><aside><article><section><hr><h1>MMM</h1><hr></section></article></aside></nav>
    <td><hr><h5>MMM</h5><hr>
<tr><td><section><div><nav><aside><article><section><hr><h1>MMM</h1><hr></section></article></aside></nav><div></section>
    <td><hr><h6>MMM</h6><hr>
</table>
<table border=0 style="-webkit-writing-mode: vertical-rl">
<tr><td><section><hr><h1>MMM</h1><hr></section>
    <td><hr><h2>MMM</h2><hr>
<tr><td><article><section><hr><h1>MMM</h1><hr></section></article>
    <td><hr><h3>MMM</h3><hr>
<tr><td><nav><article><section><hr><h1>MMM</h1><hr></section></article></nav>
    <td><hr><h4>MMM</h4><hr>
<tr><td><nav><aside><article><section><hr><h1>MMM</h1><hr></section></article></aside></nav>
    <td><hr><h5>MMM</h5><hr>
<tr><td><section><div><nav><aside><article><section><hr><h1>MMM</h1><hr></section></article></aside></nav><div></section>
    <td><hr><h6>MMM</h6><hr>
</table>
</body>
